package com.example.androidcomplete02.fragment;

import android.app.Activity;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.example.androidcomplete02.R;

public class Radio extends Activity implements
		RadioDialogFragment.NoticeDialogListener {
	TextView tv;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch20_dialogex);
		tv = (TextView) findViewById(R.id.dialog_tv);
	}

	public void mOnClick(View v) {
		DialogFragment newFragment = new RadioDialogFragment();
		newFragment.show(getFragmentManager(), "Dialog");
	}

	public void onDialogClick(DialogFragment dialog, String res) {
		tv.setText("선택한 음식 = " + res);
	}
}